extends ../../layout/layout

block content
  .content-wrapper
    .com-op.marginT10
      button.btn.btn-primary.marginR10#btn-add(type="button")
        i.fa.fa-plus
        span 新增
      button.btn.btn-default.marginR10#btn-view(type="button")
        //- i.fa.fa-view
        span 查看

    .content-body.marginT10#table-box
      table.table#table-training
      #pager-training

block vendor_css
  link(rel='stylesheet', type="text/css", href="../../vendor/jqGrid/css/ui.jqgrid-bootstrap.css")

block vendor_js
  script(src="../../vendor/jqGrid/js/jquery.jqGrid.js")
  script(src="../../vendor/jqGrid/js/i18n/grid.locale-cn.js")
  script(src="../../vendor/laydate/laydate.js")
  script(src="../../vendor/jquery-validation-1.17.0/jquery.validate.min.js")
  script(src="../../vendor/jquery-validation-1.17.0/jquery.validate.extend.js")

block self_js
  script(src="../../js/module/driver/training.js")

block self_css
  //- link(rel="stylesheet", href="../../css/driver/list.css")

block layer
  .layer-box#layer-training
    form.mw1200.padding20#form-training(autocomplete="off")
      +trainingForm

mixin trainingForm
  .row.form-row.form-row-sm
    .col-xs-12
      .form-text 驾驶员培训课程名称：
      .form-container
        input.form-control(name="courseName" required maxlength="50" placeholder="请输入驾驶员培训课程名称")
  .row.form-row.form-row-sm
    .col-xs-6
      .form-text 培训课程日期：
      .form-container
        input.form-control#courseDate(name="courseDate" required placeholder="请选择培训课程日期")
    .col-xs-6
      .form-text 培训时长(天)：
      .form-container
        input.form-control(name="duration" required digits max="100" placeholder="请输入培训时长")
  .row.form-row.form-row-sm
    .col-xs-6
      .form-text 机动车驾驶证号：
      .form-container
        input.form-control(name="licenseId" placeholder="请输入机动车驾驶证号" required maxlength="20")
    .col-xs-6
      .form-text 注册地：
      .form-container
        select.form-control(name="address" required)
  .row.form-row.form-row-sm
    .col-xs-6
      .form-text 培训时间：
      .form-container
        input.form-control#trainingTime(name="trainingTime", placeholder="请选择培训时间", required)
